package com.aaa.config;

import com.aaa.interceptor.MyInterceptor;
import com.aaa.interceptor.MySecondInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/5 9:58
 * @description：我的配置类
 * @modified By：
 * @version: 1.0
 */
@Configuration
public class MyConfig    {
    @ModelAttribute
    public void globalParameter(Model model){
        model.addAttribute("ipadress","192.168.1.55");
    }
}
